@echo off
setlocal enabledelayedexpansion
set DIR=D:\study\SourceParent\bat

(
    echo ===== %date% %time% =====
	
	for %%i in ("D:\study\SourceParent" 
				"%USERPROFILE%\AppData\Roaming\JetBrains\IntelliJIdea2025.1\workspace") do (
		cd /d %%i
		git add .
		git commit -m "Auto commit at %date% %time%"
		git push origin master
	)
) >> %DIR%\auto-git.log 2>&1
endlocal